package com.project.bookstore.category.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.ArrayList;

@Data
@Accessors(chain = true)
@ApiModel("首页类别导航栏数据")
public class CategoryIndexVO implements Serializable {
    @ApiModelProperty("类别id")
    private Long id;
    @ApiModelProperty("类别id")
    private Long parentId;
    @ApiModelProperty("深度")
    private Integer depth;
    @ApiModelProperty("类别名")
    private String name;
    @ApiModelProperty("类别连接(category_id) 例:category_43")
    private String href;
    @ApiModelProperty("子分类")
    private ArrayList<CategoryIndexVO> childCategory;
}
